package org.btik.light.server.platform.event;

import org.btik.light.meta.DevMo;
import org.btik.light.meta.DevState;
import org.btik.light.meta.event.DevEvent;

public class ConnectEvent implements DevEvent {
    private final String devSn;

    private final DevState devState;

    private DevMo devMO;

    @Override
    public String getDev() {
        return devSn;
    }

    public ConnectEvent(String devSn, DevState devState) {
        this.devSn = devSn;
        this.devState = devState;
    }

    public ConnectEvent(DevMo devMO, DevState devState) {
        this.devSn = devMO.getSn();
        this.devState = devState;
        this.devMO = devMO;
    }

    public String getDevSn() {
        return devSn;
    }

    public DevState getDevState() {
        return devState;
    }

    public DevMo getDevMO() {
        return devMO;
    }
}
